#include <57header.h>

int main(int argc,char*argv[])
{
    pid_t son_id = fork();

    if(son_id == 0){
        // 子进程
        printf("son pid : %d \n", getpid());

        // while(1){}
        sleep(10);

        return 0;
    }else{
        pid_t son_pid = waitpid(son_id, NULL, WNOHANG);
        printf("mian: getsonpid: %d \n", son_pid);

        return 0;
    }
}

